package com.clear.honghefinance.biz.modules.assist_calculate_summary.converter;

import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.dto.CreateAssistCalculateInventoryDTO;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.dto.UpdateAssistCalculateInventoryDTO;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.entity.AssistCalculateInventory;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.vo.GetAssistCalculateInventoryVO;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.vo.ListAssistCalculateInventoryVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AssistCalculateInventoryConvertor {

    AssistCalculateInventoryConvertor INSTANCE = Mappers.getMapper(AssistCalculateInventoryConvertor.class);

    AssistCalculateInventory convertDTOToEntity(CreateAssistCalculateInventoryDTO dto);

    AssistCalculateInventory convertDTOToEntity(UpdateAssistCalculateInventoryDTO dto);

    List<ListAssistCalculateInventoryVO> convertEntityToVO(List<AssistCalculateInventory> entities);

    GetAssistCalculateInventoryVO convertEntityToVO(AssistCalculateInventory entity);
}
